﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GKQC.DbHelper.ViewModels
{
    public class SizeViewModel
    {
        public SizeViewModel()
        {
            this.L1 = string.Empty;
            this.L2 = string.Empty;
            this.L3 = string.Empty;

            this.DisValid = true;
            this.LisValid = true;
            this.PisValid = true;
            this.cpisValid = true;
            this.HisValid = true;
            this.WisValid = true;
            this.CisValid = true;
            this.L1isValid = true;
            this.L2isValid = true;
            this.L3isValid = true;
        }
        public double D { get; set; }
        public double L { get; set; }
        public double P { get; set; }
        public double cp { get; set; }
        public double H { get; set; }
        public double W { get; set; }
        public double C { get; set; }
        public string L1 { get; set; }
        public string L2 { get; set; }
        public string L3 { get; set; }

        /// <summary>
        /// 測試次數
        /// </summary>
        public int SNo { get; set; }
        public long HeadId { get; set; }

        public bool DisValid { get; set; }
        public bool LisValid { get; set; }
        public bool PisValid { get; set; }
        public bool cpisValid { get; set; }
        public bool HisValid { get; set; }
        public bool WisValid { get; set; }
        public bool CisValid { get; set; }
        public bool L1isValid { get; set; }
        public bool L2isValid { get; set; }
        public bool L3isValid { get; set; }

        public void Clear()
        {
            this.D = 0;
            this.L = 0;
            this.P = 0;
            this.cp = 0;
            this.H = 0;
            this.W = 0;
            this.C = 0;
            this.L1 = string.Empty;
            this.L2 = string.Empty;
            this.L3 = string.Empty;

            this.DisValid = true;
            this.LisValid = true;
            this.PisValid = true;
            this.cpisValid = true;
            this.HisValid = true;
            this.WisValid = true;
            this.CisValid = true;
            this.L1isValid = true;
            this.L2isValid = true;
            this.L3isValid = true;
        }
    }
}
